import axios from "../utils/http.js"
export default{
//    轮播图获取数据
     getCarousel(data={}){
        return axios({
            url: "/api/resources/carousel",
            method: "POST",
            data: data
        })
     },
    // /product/getHotProduct 获取热门内容
    getHotProduct(categoryName){
        return axios.post(this.categoryName,{"categoryName":["电视机","空调","洗衣机","保护套", "保护膜", "充电器", "充电宝"]})
        // return request({
        //     url: "/api/product/getHotProduct",
        //     method: "POST",
        //     data: data
        // })
    },

// /product/getPromoProduct  获取各类商品数据
    getPromoProduct(){
        return request({
            url: "/api/product/getPromoProduct",
            method: "POST",
            data: data
        })
    }
}